﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UFIDA.U9.Cust.YYD.PlugBE.Dtos
{

    public class MESMODTO
    {
        public Maindata mainData { get; set; } = new Maindata();
        public List<Mfgmaterialdata> MFGMaterialData { get; set; } = new List<Mfgmaterialdata>();

        public List<JointProductData> JointProductData { get; set; } = new List<JointProductData>();
    }

    public class Maindata
    {
        public string mfgOrderCode { get; set; }
        public string material { get; set; }
        public string materialVersion { get; set; }
        public string processRoute { get; set; }
        public string processRouteVersion { get; set; }
        public decimal pQty { get; set; }
        public string unit { get; set; }
        public string orderTime { get; set; }
        public string planTime { get; set; }
        public string orderType { get; set; }
        public string orderTypeDesc { get; set; }
        public string finishedInventoryType { get; set; }
        public string factory { get; set; }
        public string area { get; set; }
        public string workCenter { get; set; }
        public string warehouse { get; set; }
        public string planBeginDate { get; set; }

        public string planEndDate { get; set; }
        public string fromBill { get; set; }
        public string fromDomain { get; set; }
    }

    public class Mfgmaterialdata
    {
        public int seq  { get; set; }
        public string material { get; set; }
        public string materialVersion { get; set; }
        public decimal totalQty { get; set; }
        public string unit { get; set; }
        public bool isDegradedMaterial { get; set; }
        public string warehouse { get; set; }
        public decimal excessCollarRatio { get; set; }
    }

    public class JointProductData
    {
        public string material { get; set; }
        public string materialVersion { get; set; }
        public decimal planQty { get; set; }
        public string jointProductType { get; set; }
        public string unit { get; set; }
    }

    public class MESReturnDTO
    {
        public string code { get; set; }
        public string message { get; set; }
    }

}
